package com.aman.entity.dao;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * description:
 * ********************
 *
 * @author lv jin
 * @date 2025/1/9 19:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户登录信息")
public class UserLogin {


    /**
     * 用户ID
     */
    @Schema(name = "id")
    private int id;

    /**
     * 用户名
     */
    @Schema(name = "username")
    private String username;

    /**
     * 密码哈希值
     */
    @Schema(name = "password_hash")
    private String passwordHash;

    /**
     * 电子邮件
     */
    @Schema(name = "email")
    private String email;

    /**
     * 上次登录时间
     */
    @Schema(name = "last_login_time")
    private java.util.Date lastLoginTime;

    /**
     * 登录次数
     */
    @Schema(name = "login_count")
    private int loginCount;

    /**
     * 是否激活
     */
    @Schema(name = "is_active")
    private boolean isActive;


}
